<template>
  <div >
    <h1 @click="alertName">学生姓名:{{name}}</h1>
    <h2>学生年龄:{{age}}</h2>
</div>
</template>

<script>
   //局部混合
    // import {mixin,mixin2} from '../mixin'
    export default {
        name: "StudentInfo",
        data() {
            return {
                name: "张三",
                age: 18
            }
        }
        // mixins: [mixin, mixin2]
    }
</script>

<style>
    
</style>